package stage2;

import java.util.Scanner;

public class check6_3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入月工资金额");
        double salary = sc.nextDouble();
        double remove_money=0;
        if (salary<=3000){
            System.out.println("您的税收为0元");
        }else if(salary>3000&&salary<=4500) {
            remove_money = (salary-3000)*0.05;
        }else if (salary>4500&&salary<=7500){
            remove_money = 1500*0.05+(salary-4500)*0.1;
        }else if(salary>7500&&salary<=12000){
            remove_money = 1500*0.05+3000*0.1+(salary-7500)*0.2;
        }else if(salary>12000&&salary<=38000){
            remove_money = 1500*0.05+3000*0.1+4500*0.2+(salary-12000)*0.25;
        }else if(salary>38000&&salary<=58000) {
            remove_money = 1500 * 0.05 + 3000 * 0.1 + 4500 * 0.2 +26000*0.25+(salary - 38000) * 0.3;
        }else if(salary>58000&&salary<=83000) {
            remove_money = 1500 * 0.05 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000*0.3+(salary - 58000) * 0.35;
        }else if(salary>83000) {
            remove_money = 1500 * 0.05 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000 * 0.3 + 25000*0.35+(salary - 83000) * 0.45;
        }
        System.out.println("您需要缴纳的税收："+remove_money);
    }
}
